import request from '@/axios'

export const saveDataApi = (data) => {
  return request.post({ url: '/api/sysGenForm/save', data })
}

export const deleteDataApi = (data) => {
  return request.post({ url: '/api/sysGenForm/delete', data })
}

export const updateDataApi = (data) => {
  return request.post({ url: '/api/sysGenForm/update', data })
}

export const selectPageApi = (data) => {
  return request.post({ url: '/api/sysGenForm/selectPage', data })
}

export const selectFormDetail = (data) => {
  return request.post({ url: '/api/sysGenForm/selectFormDetail', data })
}

export const saveOrUpdateForm = (data) => {
  return request.post({ url: '/api/sysGenForm/saveOrUpdateForm', data })
}

export const selectModelByFormIdApi = (data) => {
  return request.post({ url: '/api/sysGenForm/selectModelByFormId', data })
}

export const getFormOptionsApi = (data) => {
  return request.post({ url: '/api/sysGenForm/getFormOptions', data })
}
